package com.wander.patterns.act.chainOfResponsibility;

/**
 * @description: 部门主任
 * @author: zhuyong
 * @create: 2019-09-07 16:45
 **/
public class Director extends Leader {
    public Director(String name) {
        super(name);
    }

    @Override
    void handlerRequest(LeaveRequest request) {
        if(request.getLeaveDays()>3){
            this.nextLeader.handlerRequest(request);
        }else{
            System.out.println("员工"+request.getEmpName()+"请假请求到达小组长");
        }
    }
}
